
type User = {
    name:string;
    age:number
}


const users:User[] = [
    {
        name:'liuyu',
        age:18
    },
    {
        name:'liuyifei',
        age:11
    }
]

const uu = users.map( user => {
    return `name:${user.name} age:${user.age}`
})

console.log(uu);